package splab.ufcg.edu.br.trace.query.entities;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class QueryParameterNode implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5251910908103420909L;
	
	private QueryParameter paramenter;
	
	private QueryParameterNode nextParameter;
	
	
	
	public QueryParameterNode(){
		nextParameter = null;
	}
	
	public QueryParameterNode(QueryParameter current, QueryParameterNode next){
		this();
		this.paramenter = current;
		this.nextParameter = next;
	}

	public QueryParameter getParamenter() {
		return paramenter;
	}

	public void setParamenter(QueryParameter paramenter) {
		this.paramenter = paramenter;
	}

	public QueryParameterNode getNextParameter() {
		return nextParameter;
	}

	public void setNextParameter(QueryParameterNode nextParameter) {
		this.nextParameter = nextParameter;
	}

	@Override
	public String toString() {
		StringBuilder str = new StringBuilder();
		
		str.append(paramenter.toString());
		
		if(nextParameter != null){
			str.append(", ");
			str.append(nextParameter.toString());
		}

		
		return str.toString();
	}
	
}
